package com.baosu.jenkins2.controller;

import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/dome1")
@AllArgsConstructor
@Validated
public class Demo1Controller {

    @GetMapping("/test1")
    public String list() {
        System.out.println("test1");
        return "master分支";
    }

    @GetMapping("/test2")
    public String test2() {
        return "br3分支";
    }

}
